package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 驿站管理表单对象
 *
 * @author youlaitech
 * @since 2025-09-16 22:35
 */
@Getter
@Setter
@Schema(description = "驿站管理表单对象")
public class TomYzTableForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "驿站名称")
    @NotBlank(message = "驿站名称不能为空")
    @Size(max=64, message="驿站名称长度不能超过64个字符")
    private String name;

    @Schema(description = "备注")
    @Size(max=64, message="备注长度不能超过64个字符")
    private String remark;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
